<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="./css/reset.css" />
    <title>w3c头部栏练习-用浮动布局</title>
    <style>
      a {
        color: #900b09;
      }
      .navFirst {
        height: 48px;
        width: 1210px;
        margin: 50px auto;
      }
      .navFirst .menu {
        height: 100%;
        width: 100%;
        background-color: #e8e7e3;
      }

      .navFirst .menu li {
        float: left;
        height: 100%;
        line-height: 48px;
        font-size: 18px;
      }

      .navFirst .menu li a {
        display: block;
        padding: 0 41px;
      }

      .navFirst .menu li:last-child a {
        padding: 0 46px;
      }

      .navFirst .menu li:hover a {
        color: #e8e7e3;
        background-color: #3f3f3f;
      }
    </style>
  </head>
  <body>
    <nav class="navFirst">
      <ul class="menu">
        <li><a href="#">HTML/CSS</a></li>
        <li><a href="#">Browser Side</a></li>
        <li><a href="#">Server Side</a></li>
        <li><a href="#">Programming</a></li>
        <li><a href="#">XML</a></li>
        <li><a href="#">Web Building</a></li>
        <li><a href="#">Reference</a></li>
      </ul>
    </nav>
  </body>
</html>
